package com.jmb.apiplatform.pojo;

import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 请求配置信息实体类
 *  @author jmb
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class HttpSettingDao {
    private Integer settingId;
    @NotEmpty(message = "配置项名称不能为空")
    private String name;
    private String value;
    private String description;
    @NotEmpty(message = "配置项状态不能为空")
    private Byte statusId;
    @NotEmpty(message = "配置项类型不能为空")
    private Byte type;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
